Karl I already made it. Basically onload checks for item file type and (if exists) shows custom thumbnail. When you click on any item, it checks type and will call specific js function that will add custum iframe etc to preview modal.
It works fine, but I would want elegant way to make custom previews for unknown file types.
Now I use observers to catch any changes. To have native files.gallery event callbacks would be amazing. Mby you can update new release that I can give some feedbacks.
Even for existing jpg I change img to svg in preview modal, because I have specific needs. Let me interact with preview modal for any file (if necessary)