You can right-click in the Blocks area and choose Undo last delete but it does not work for every action/change.
Undo last delete