Resize Game Window

I'm currently working on a game and I'd like to make the player choose what window size they want.
Instead of the rather square window we have now, I'd like a more wider one with doesn't have black borders in full screen.
But not all monitors have the same aspect ratio, so I would like to have an in-game option for the player to choose the window size.

Are there any plugins that I don't know of that do this or is there someone that knows enough about coding to make this plugin or script?
Please let me know.

Thanks in advance,
Jomy10

Original thread: https://forums.rpgmakerweb.com/threads/resize-game-window.83820/