Steps to Reproduce the Issue:
Switch to full screen mode (via settings or F11).
Connect to a third-party server (in my case to a private server).
Minimize the game by pressing Alt+Tab.
The game disconnects from the server and goes to the main menu.
This problem also occurs with all Windows players who play with me. All of them have full screen mode enabled.
Related issues
duplicates
Comments

This issue is being tracked at MCPE-109879.