Return a WindowQuery wrapping the given window. If window is omitted, the default window instance is used.
WindowQuery
window
DQuery $window([Window? window]) => new _WindowQuery(window);