Isn’t this what GitHub remote envs are (or whatever they call it)?
Never really got what it’s for.
JetBrains has Gateway which allows connecting to a remote instance and work on it.
Yes, but it requires JetBrain running on the client too.