Use a HeaderBar if available

Follow the new design pattern of merging an application's main toolbar with the window decoration.