Force size ratio

Hello,

I just started to develop plugins and like to let the user set the size of the plugin so I checked “Resizeable”, but I would like to keep the proportions, I always like the plugin to be ratio 1:1. Is this possible? I get that I could just draw my plugin as big as the minimum width/height but that feels a bit like tricking the user that the element will be an other size then it ends up like.

Thanks!