Adding files in System Workbench in CubeMX generated project
Adding existing files two workspace is by copping theme manually ( using file explorer ) to the folder you want and then make a refresh to the project and you will see the file automatically added to the project.
This is the way I do it , I do not know if it is the “correct way”
best regards
Eng.Mazen Aljeddani