The new version of macOS allows to show the menu bar at all times, even if the app is in full-screen:
> Full-screen menu bar. You have the option to display the menu bar at all times in full screen so you can easily view the app menu and other glanceable information anytime.
Source: last feature in https://www.apple.com/macos/monterey/features/