Energy2D: Support dragging of polygons + minor fixes

[#52938193]