Use max tracking size instead of maximized size to limit window size.