Add minWidth and maxWidth properties for window component