project_panel: Fix clicking away to create file or directory doesn't create it (#39716)
Smit Barmase
created
Closes #38919
Now, when unfocusing the filename editor while creating a file or
directory in the project panel, it will create it by default unless the
name is empty or already exists.
Release Notes:
- Improved behavior where unfocusing while creating a new file or
directory in the project panel now creates it instead of discarding it.