Resizes the buffer to the new dimensions, preserving existing content where it fits.
@override void resize(int newWidth, int newHeight) { throw UnsupportedError('Cannot resize a Viewport'); }