Reduce the scope of wi.Window.