Trash delete Undo??

Is there anyway to make an app that will undo a “Empty Trash” mistake? Kind of a goofy idea, but is it possible? Not “Secure Empty Trash” but “Empty Trash”. However, if you can do both, let’s do it!

Thanks for all the help!