There are provisions for buried magnets in the print. I used magnets from a disk drive as they are quite strong. The printed part is designed to be tight to the existing door lock mechanism and will work without the magnets--for a time. The magnets will hold it even as it wears a bit.
Designed in Sketchup. No worries about copyright, please improve it!