I’ve been doing it for so many years across all devices and platforms that I actually get…confused for a second when one slips through. It is normally YouTube that slips through (they seem to be trying new things almost daily to get around any possible ad blocks), but sometimes it is from a major news web site or something. I actually have to look around for a second and then realize what has just happened.
I don’t use my Mac much, but I was just recently looking at Stage Manager to help me set up a few app arrangements for some work I was planning to do soon. I thought it was the answer to my prayers but I was, again, disappointed by the lack of options and what I would consider common-sense features.
I did see something called Moom on the App Store and it was $10. I didn’t buy it myself yet but I think it might solve all or most of your problems. I think its sole purpose is to save app and window arrangements and allow you to set up keyboard or trackpad (or mouse I assume) shortcuts to get back to those arrangements. It seems to have options relating to how the apps are handled (are they opened if not already open? do they default to a particular file or action upon the shortcut being used? etc).
If you do happen to try it out, let me (us) know what you think of it?