restricting resizeable window

Is there anyway to restrict the application resizable window to less than say 640 by 480 or something?

You could do something like this

if(<GUIWindow>.y > 480)
{
	<GUIWindow>.y = 480;
}

Just my 2 cents, but I’m tired so there might be an easier way that my brain didn’t think of.

Obviously just change for the real reference.