@Nullable, that really isn't useful in this topic since most of the time, a program that uses more than one window either uses threads or a single process to make multiple windows as that is more effecient. Even if it didn't process walking wouldn't be useful enough to handle the windows themselves.
@rain, I'm not sure what you want. I could say, make a vector that increases on each window but I dunno what you want.