Replace Window base with AppletWindow for consistency, switch to FlatScale, and streamline mouse capture handling.