Is there a way to achieve 'ResizeGrid'?

I’d like to imagine a new option “ResizeGrid”. It will define an invisible grid on the screen. During an interactive resize the current window border will be positioned such that it will coincident with the nearest grid line.

As an example if I define: ResizeGrid 5 5
All interactive resizes will be following an 5-pixel increment.

Is there any way to achieve this?

Thanks!

You can do this with the Resize command.

– Thomas Adam