You can open desktop mode inside of gamemode, just like any other game or application. I find it easier to use most desktop apps this way instead of adding them individually to steam.
To do this, download this script. Save it as a script and make the script executable. Finally right click the file and “add to steam”.
Some important notes with this: You can’t exit steam while running the desktop this way, so apps that require closing steam (like steam rom manager) won’t work. There are also a few apps that do weird things, like cryoutilities shows up super tiny this way. But generally most everything works.
Is this your script? I’m a little hesitant about running a random script without knowing what it does (not that it looks particularly complex!), but also very keen to try it out!
Script seems fine to me. But good on you for being skeptical about running random scripts.