Change gameview ratio / resolution using a custom inspector?

Hi,
I’m trying to switch the gameview resolution (ratio) through a custom instpector, but I’m not having much luck.
I can’t seem to wrap my head around how to access the list of gameview resolutions.
Is there a simple way to get this list?

Try this one and you can add any resolution you want but click on the (+) button on the button left corner of the pop up.