Use Diameter 12mm x 5mm Magnets
Print both parts with the holes for the magnet upwards.
You need two plates and one base.
The airholes are for gluing in the magnets.
Mount the parts to the wardrobe using double sided tape.
Source: https://a360.co/3tUxuTS
The author hasn't provided the model origin yet.