You can set the size of the secondary window using secondaryInitialSize parameter. However, I can't seem to figure out how to change this once the component is loaded? I have set the size to a state variable, but updating the variable doesn't change the size.
Is there anyway to change this after the component /page is loaded?