Reproduction steps:
1. Open the attached “My project.zip” project
2. Open the “Assets/Scenes/SampleScene.unity“ Scene
3. Open the Game tab and set it to "Play Unfocussed"
4. Switch to the Scene tab
5. Enter the Play Mode
6. Exit the Play Mode
7. Close the Unity editor and re-open the project
8. Enter the Play Mode
9. Observe the Console window
Expected result: Valid mouse position coordinates should be returned
Actual result: “Mouse position is invalid : (NaN, NaN, 0.00)” is displayed
Reproducible with: 2021.3.47f1, 2022.3.55f1, 6000.0.32f1, 6000.1.0a8
Reproducible on: Windows 11
Not reproducible on: No other environment tested