If you made your window bigger but you don't want to make your graphics scale as well, just keep defining your Viewport to be the same size in pixels as it was before. It's only when the viewport stretches with the window - e.g. your canvas graphics object automatically stretches when the window sizes due to the edges being locked to it, then you'll get the canvas automatically sizing as well. Otherwise it should stay fixed.