On Xorg and Windows when the Minecraft window is focused the system On-screen keyboard shows up, however this is not the case with Wayland.
Steps to reproduce:
During login switch to using Wayland.
In System Settings go to Accessibility and turn on On-screen keyboard.
Open Minecraft and then minimize and unminimize the game window: the OSK. doesn't show up ❌ .
During login switch to using Xorg.
Open Minecraft and then minimize and unminimize the game window: the OSK shows up ✔ .
This is a bug in the way that wayland OSKs interact with XWayland, not with Minecraft.