To use the window module, import wixWindowFrontend from the wix-window-frontend module:
wixWindowFrontend
wix-window-frontend
The APIs in wix-window-frontend can only be used in frontend code.
Learn more about wix-window-frontend in Getting Started and on Wix Learn.