- Refactored LastWindow for ActiveWindow.