defaultView

In browsers, document.defaultView returns the window object associated with a document, or null if none is available.

MDN Reference