When launching a project file the audacity window does not take focus

This always happens if the existing app window is freshly opened, like it is after you use Close Project. You double click on the project file and unbeknownst to you it has opened somewhere in the background, and then you have to hunt for it.

Launching works fine if the existing window contains tracks.

What is your operating system and Audacity version?

Oh, it’s Win10 using 3.7.5