Switch between [enum@Adw.
DialogPresentationMode.floating] and [enum@Adw.DialogPresentationMode.bottom-sheet] depending on available size.