Lock window size

Is there a script to lock the size of the game window, so that it always stays at the resolution I set?
there is 2 ways to do it, to alter the packed.json or with SRD_GameUpgrade
to set a max and min resolution, so it wont be able to stretch bigger than
you set in the parameters (I can't say the same for full window if that works)
as I don't like full screen, so its the 2 options I can offer.

if you want a mini plugin for this, it can be made.
Thank you so much!

Original thread: https://forums.rpgmakerweb.com/threads/lock-window-size.176283/