How to create an Icon from static resources ?

Icon class doesn’t have too many options to create an instance of it, I couldn’t find any utilitary neither, V7 has a new Icon(String, Resource) so I could load my .png but on V14 I can’t figure it out.

I am not sure either if these images should go in /src/main/resource or /frontend