Currently, there is no built-in Compose component to do that. The current implementation by JetBrains does not support Vulkan, so we have to use OpenGL as the backend for WebGPU. However, some features are missing or not fully implemented with OpenGL.
If you want to draw on the whole surface, you could use this sample:
https://github.com/JetBrains/compose-multiplatform/tree/master/experimental/lwjgl-integration and configure WebGPU to use OpenGL.
Another way would be to render to a texture and put that on a bitmap to display it on a Compose component that supports bitmaps.
This is easy to do but adds overhead.