feat: synchronize Custom Module overlays with main window visibility on macOS and Linux