Only some windows succeed to render an image when forwarding X11 over SSH.
I am able to connect to a Jetson AGX Orin Developer Kit using SSH and VNC. However, some windows will render a black window when forwarding X11 over SSH.
Some windows will render properly when forwarding X11 over SSH.
To put that in a more intuitive context relative to your issue, consider that if your program either uses CUDA or directly rendered OpenGL, then the libraries and APIs of the host PC must have that software for ssh forwarding, and that software must be of the correct revision/version. For the case of a virtual desktop, that same CUDA or OpenGL software must run on the Jetson itself, and the only thing the PC needs is the virtual desktop software. ssh forwarding from a Jetson implies you are no longer using its GPU; virtual desktops running on a Jetson implies the Jetson is using its GPU.