Just using globals?
These variable set on opening a new window/selecting windows?
And you can use the OnWindowOpen trigger (see File | File Options) to run a script that updates such a set of global variables with the window data. but note that "opening another window" might be opening a window in the same file or opening it in a different file. In the latter case, keep in mind that a given set of global variables only exist in the context of the file where they were created so there may be cases, if you have multiple files, where you need to pass the window data as a script parameter to the file from which you opened your "window data" window.
I've often approximated this sort of thing by creating a watch expression in the data viewer. something like:
List ( Get (WindowTop ) ; Get ( WindowHeight ) ; Get ( WindowLeft ) ....)
This let me see the current location and dimensions of whichever window currently had the focus.