The door rack for my pantry has large open spaces in the front and things would fall out every time the door was opened. I did some rough measurements with calipers and whipped these up in Tinkercad. I only needed them in roughly 40mm and 60mm lengths, but I'll post my Tinkercad files so you can customize them.
https://www.tinkercad.com/things/8pVsizCOmIG-door-clip-40mm
https://www.tinkercad.com/things/ljJJJ4QEdA6-door-clip-60mm
The author marked this model as their own original creation.