Similar to the Classic UI: implement maximize/minimize buttons for dialog windows with corresponding API to enable/disable it. More details: https://github.com/jmix-framework/internal/issues/22