I decided not to resize the window if a plugin has less parameters for now, since the VST specifications do not say that the number of parameters cannot be changed while the plugin is running. And actually, some plugins (like Electri-Q) make use of this fact. So if there are some plugins with no GUI that dynamically change the number of parameters, the plugin GUI would have to be resized all the time.