Fixes Minecraft’s static GUI opening with immersive in-world camera positioning.
Backport from the 26.1.2 version, no other changes, not extensively tested.