Plugin resize via JS

Hi,
I make additional custom panels with width and height parameters in my plugin. I want to create some presets for users with these parameters. Can I change the plug-in size in UXP using js?

It could be done with this code for CEP:

CSInterface.prototype.resizeContent = function(width, height) {
    window.__adobe_cep__.resizeContent(width, height);
};

Does UXP have something similar?

UXP does not currently have any mechanism for controlling the size of the panels dynamically.