Edit Viewport Dimensions within its Properties?

How does one edit the dimension properties of the viewport other than playing click/drag of application window? (Not finding.)

Hello - that is in the Properties panel of there is no selection:

or via a macro like

-_ViewportProperties Size 800 600 _EnterEnd

-Pascal

Thanks for code. Just what I needed. Curious why
dimensions for basic viewports cannot be edited in Properties…

Hello - they can. You can type in there.

-Pascal

If a “standard/basic” view is maximized, the dimensions shown in viewport properties cannot be modified.

Yes, that is true - a maximized vp is locked in.

-Pascal