If you have accidentally deleted objects from the Project Explorer, you can try to restore them. You can rely on the versioning system functionalities you are using - such as GIT or SVN - but if you can't there is an other option :
- Right click on the parent element (project or folder) / Restore from local history...
- the User interface will show the items which were recently deleted