I'm using Window with my own custom style via <replace-with..> replacing: ContentPanelAppearance, WindowAppearance, FramedPanelAppearance
I've added: "padding: 8px" for the body and top elements.

The problem is that when I hide the window and then show it, it grows in height and width. If I remove the padding the size remains the same.

Have no idea how to debug this.