We need to take into account the main item's dimensions in the minimum width and height properties.
Now I can't resize these dialogs to be unusably small anymore.
cc @sitter @apol