Thank you 😊
The windows are just different surfaces (that's just what pygame calls them idk what else they might be called) and there's a list of them, the last on being the "focused" one. Whenever you click a window or open it ot puts it to the back of the list.
It defo isn't optimised at all cuz opening 3 windows starts to tank fps but it's just a jam game, but that fps tank stopped me from making a web build because pygame web builds run at like, 50%-20% of the normal game speed so the game already slowing down normally would suck for a web build.
But I'm rambling lol, thanks for the kind words