Using Ubuntu 21.04 with pure Gnome Shell 3.38.
Consider this example scenario: I have 2 workspaces open, workspace-1 and workspace-2. In workspace-2, the Gedit app is open. In workspace-1, the Gedit app is not open.
While in workspace-1, I enter Nautilus app and double-click on a saved Gedit text file. Gedit opens the file but auto-moves to workspace-2 to present the opened file. WTHeck! Why isn't it opening Gedit in the workspace I am in? What is the point of workspaces if you can't create the stuff you want to work with in that workspace?
This behaviour has been added with the migration to Wayland only, instead of keeping support for X11, as discussed here.
But because this has been bugging me too, and I still use X11, I reverted the commits in question: Similar as here explained, you need to revert commits C1, C2 and finally, most importantly C3.
My patchfile for Gedit 40.1 you can find in my Gentoo overlay.