Constrain Viewport Aspect Ratio

We all adjust our various panels every now and then, but amidst all of that it would be really useful if we could constrain the viewport render to a certain aspect ratio or resolution.