MacOS window opens in the background and does not receive focus

Seems that I’m not alone: