I’m having the same issue on a Mac running Catalina 10.15.7 and UE4 version 4.25.4. It seems that when I open any type of new window this foreground issue occurs and I have to totally exit UE4 and reopen it again. A mate suggested having new windows open as tabs (preferences) but this doesn’t solve the bug issue.