gtk_window_set_titlebar does not take ownership of the headerbar, so we need to explicitly destroy it.