getWindow
Gets the window object for the given target or the global window object if no target is provided.
function getWindow(target?: ): Window & globalThis;
| Node
| ShadowRoot
| Document
| null
Gets the window object for the given target or the global window object if no target is provided.