It is hard to discover how to toggle on/off an application in fullscreen mode.
For the applications that support fullscreen, an icon is displayed in the titlebar for toggle on this mode.
In fullscreen mode, a fake title bar appears when the cursor hit the top of the screen.
This fake titlebar has an icon for toggle off fullscreen mode.
fullscreen mode on macos:
Already reported as Bug 419122.