Move window properties to UI definition.