I use Sunshine with the Moonlight client for Remote Desktop. With my computer running Tailscale I can connect to it from anywhere. It’s designed for game streaming on a local network, but tweak the bandwidth settings down and it works a treat for remote work.
You could also try micro, which is a terminal text editor with mouse support, syntax highlighting and many more features that you know from GUI text editors.
This is the big issue. It breaks a lot of X11 features. Remote desktop via VNC or RDP should still be possible. Another is ssh and sftp. Edit the file on the client. Another go all in with command line. Nano is easy. Emacs or VIM more powerful but harder. Screen is a useful command line tool too.