The default behaviour is to keep the default view at the original window dimensions even after a resize, which means your graphics will actually stretch automatically.
However, if your window has a different size at startup, then of course it won't show the same result. All you have to do is to resize the default view to whatever resolution you want to use, regardless of the window size.