Create window with maximum size instead of a fixed one