This conversion was done with the help of gtk4-builder-tool.
This new step sets the headerbar as titlebar, and enables fallback for the app menu.