Layout is the whole area for your game. Not all of it may be on the screen.
Viewport is the are that can be seen - or the bit of the layout that will appear on the screen.
All properties, such as the sizes for the layout or viewport can be set in the properties bar.