You can use SSH X11 forwarding to display the window locally, but run it on a remote computer.
There are many tutorials, and the configuration, although often not complicated, depends on your operating system, etc., so I would recommend that you simply use the phrase “ssh x11 forwarding” to learn more about its configuration.
SSH X11 ssh , , . , ssh <servername> ssh -X <servername>, , emacs .