FrontWindow
FrontWindow Return a pointer to the frontmost window
#include <Windows.h> Window Manager
returns address of WindowRecord for frontmost window
This function returns a pointer to the frontmost, active window.
Returns: a WindowPtr identifying the window that is currently frontmost and
active. If no windows are currently visible, the return value is NIL
(0).

Notes: The global variable, GhostWindow (at 0x0A84) lets you specify a window
that always floats above all other windows. If you use this variable,
FrontWindow will return the next lower window.
Under MultiFinder, this function (and many others) apply only to the
current window layer (usually the caller's application). Thus, you may
get a NIL return value even if there are many windows visible. Under
Finder, you may get a WindowPtr to a DA.