Platform conventions on macOS are to use the built-in menu bar at the top of the display rather than a custom widget. This would involve some custom platform code for macOS.
https://discourse.glfw.org/t/modifying-glfw-window-menu-bar/1291