This example showcases how to use an undocumented window UITitleBar.titleVisibility value to enable custom UIKit (or SwiftUI) toolbars in Mac Catalyst that support both input events and draggability.
steventroughtonsmith/CatalystCustomToolbar
Using UIKit/SwiftUI to build a toolbar for a Mac Catalyst app
Swift