Return a WindowQuery wrapping the given window. If window is omitted, the default window instance is used.
WindowQuery
Query $shadowRoot(ShadowRoot shadowRoot) => new _ShadowRootQuery(shadowRoot);