Energy2D: Prevent users from dragging parts out of the model

[#52938193]