Hi @flashoop,
even so, this info is for draw.io for Confluence, you can take a look at this answer: Draw.io for Confluence - How do you create a custom library with custom shapes in draw.io?. It will work basically the same in the open source app diagrams.net.
Other support channels for the open source solution you can find here.