Window Lock Mechanism.
You need 4 neodymium magnets and insert them into the slots so they oppose each other so they can act as springs.