@Gargron
Have a look at what the developers of Mastonaut and whalebird did for their Mac OS apps.

apps.apple.com/dk/app/mastonau

apps.apple.com/dk/app/whalebir