If you realized that you still need the folder right after deleting it on your computer, you should press Ctrl + Z to undo the deletion. If the shortcut key doesn't work, please follow this: open the Recycle Bin -> right click on the deleted folder -> choose Restore.