In Modeler We Can’t undo Deleted files or resources.
Mendix Modeler Should support Undo Action for recent deleted document or resource or file either by providing button action or Ctrl + Z sortcut key.
See also here: https://forum.mendix.com/link/ideas/2115