Sometimes I type a password into one window, only to have another window pop up partway through and eat the rest of my input. This is why we need to prevent unintentional window activation.
A proper solution is probably faster startup times, but overall it pretty much never happens? Idk maybe I'm lucky or just conditioned to ignore it.
Maybe an auto-updater will do this, and if it happened with any frequency I might disable those autoupdates and try a macro-based (e.g. Keyboard Maestro) solution.
It's infuriating.