Disable Auto-Scroll from Source to prevent the Project tool window from closing when switching editor tabs in IntelliJ IDEA.