DEV: Allow displaying both title and panels in modals (PR #10220)

Example:

image

GitHub