The most interesting thing is that according to the Minecraft WIKI, this mode appeared back in Minecraft Beta 1.18.30.
To enable the mode, open the chat and enter the command /gamemode 6.
Lines have not been added for hints yet, but it is clear that this is exactly the Spectator mode.
The mode itself works very well. No lags were noticed.