Returns the `window` object from a DOM object