Set sidebar window width with UNO


I’m searching for a way to change the width of the sidebar window dynamically.
In my JAVA Sidebar extension I would need this functionality due changing layouts which could require more width of the sidebar for better usability.

How I am able to get the Sidebar Window to change it’s with, or may a service exists?

Unfortunately I didn’t found it yet, I’ve tried to increase the inner Window which is created by XUIElementFactory createUiElement() but didn’t help.

Thank you in advance.

Kind Regards