project_panel: Add warning error for leading or trailing whitespace when creating file or directory (#28215)

- Show yellow warning (instead or error) for leading/trailing
whitespace.
- Do not block user from creating it.
- If you rename existing file/dir which contains leading/trailing
whitespace, it will show error right away.

<img width="250" alt="image"
src="https://github.com/user-attachments/assets/562895ee-3a86-4ecd-bb38-703d1d8b8599"
/>

Release Notes:

- Added warning for leading or trailing whitespace while renaming or
creating new file or directory in Project Panel.
956f359045Smit Barmase committed on 4/7/2025, 12:17:54 PM· committed by GitHubparent3b46fca
1 file changedLine totals unavailable