URGENT Help with plugin

I am creating my own plugin and I don’t want this to happen explained below:

How do I make my plugin snap to only the left and right side, for example this is what is happening right now:

As you can see it is snapping to the top left side which I don’t want.

I want to only make my plugin snap to the left or right side of the screen, (not the top/bottom left and right side) if there is space.

The reason I am doing this example with other plugins is because I don’t want to spoil my plugin

1 Like

Try dragging the plugin widget into the properties tab so they merge together on the left side.

I am creating my own plugin and I don’t want this to happen in my own plugin, I want it to not snap there if there is no room,

Sorry for not clarifying before

Does anyone know what I should do?
Because I do know it is possible since UI Tools does this somehow

bump because I still did not find any solution