How to reproduce:
1. Install the VisionOS module in the Unity Hub (It will fail due to another issue, [Internal link] )
2. Create a new Project
3. Open the Build Settings Window (File -> Build Settings)
4. Click on VisionOS
5. Click switch platform
Expected result: The ability to switch the platform is unavailable because the module is not installed
Actual result: There is an ability to switch to VisionOS even though the module is not installed
Reproducible with: 2022.3.30f1
Not reproducible with: 2022.3.29f1
Reproduced on: Windows 11