The same principles can be applied to jumping from one desktop environment to another, for example, from #Plasma to #Gnome...
https://tube.kockatoo.org/w/gT1rKp7QWu7S4GYsKtw87x
... And can provide a way to save the state of an application to disk, stopping the app in its tracks and removing it from memory, so that later you can restore it just where you left off.