Same app or different, doesn't matter, there's always something trying to grab attention on a Windows desktop
One of the things that most impressed me when I switched from Windows to OSX was that OSX prohibited programs from stealing focus.
Sadly, that prohibition ended maybe five versions ago, and now macOS is like Windows -- You can be typing a document in a word processor, and then suddenly for no reason you're typing it into a browser, and then into a password field that popped up out of nowhere.
Hey, Johnny Apple! Fix this!