Port _PanelDecorationLayouter.py.