We have recently introduced an undo and redo functionality for the rearrangement of widgets on dashboards with grid-based layout.
This is possible through the dedicated icons in the dashboard header, after the rearrange option has been activated.
The icons will then become active after you have moved a widget on the dashboard.

For details, refer to Arranging widgets in the grid-based layout.
