Switching between different layouts

I am having an issue making this work. I defined another template as you described (for testing purposes, I defined an empty template with red background color AND different size).

Although it does switch (meaning I see the new template), the window does not get resized with the new size (I have tried with the editor and the VST3PluginTestHost app).

Any idea how to make it work?

Thanks
Yan