Window arrangement order (How do you make one window above/below another?)

More specifically, my problem is that I want to put Window_Gold under the "use item on actor X" window, but I don't want to modify Window_Gold (currently, I'm aligning the window in such a way that it is "under" that specific window).

But speaking in general terms, how are windows "arranged"? How does one arrange the order in which windows pop up?

I have a hunch that it's the superclass the original window is defined under, thus the reason why I'm asking about how to "redefine" the superclass.

Simply typing Window_Gold < insertclassnamehere gives me a "superclass mismatch for class" error. I'm assuming I can't just go around redefining superclasses like that...

Edit: I've been looking through a few webpages, and it's looking pretty grim for the changing superclass thing. I think I may end up just making a Window_Gold2 or something. However, the question of placement still is unanswered, so could someone clarify how windows decide to be positioned? xD thanks!
Nevermind, I forgot this bit of code:

@gold_window.viewport = @viewportIt's working as it should, now.

Original thread: https://forums.rpgmakerweb.com/threads/window-arrangement-order-how-do-you-make-one-window-above-below-another.44657/