Xojo or MBS method to add a custom folder icon to a newly created folder?

I searched the forum for answers to your question, the thing that is for sure is that the method is specific to each OS. For example I found this:

Unable to create custom folder icon with MacOS UTI - Targets / macOS - Xojo Programming Forum

Nothing regarding Windows or Linux.

@Christian_Schmitz Is there a function for that in one of your plug-in ? Thanks