Unless it was magnetized itself, you would need to use electromagnetic levitation most likely.
See [url]http://en.wikipedia.org/wiki/Magnetic_levitation#Induced_currents.2Feddy_currents[url]. I think that, in theory, this is possible. However, you may wind up with significant difficulties owing to the potential conductivity of the surrounding materials, as well as the magnetic properties of the latch itself.
http://en.wikipedia.org/wiki/Permeability_(electromagnetism)I'm just going out on a limb here, but I do think it would be possible with a very strong electromagnet (*if* you could induce a field strong enough). Also, electromagnets are super-cheap and easy to build--might be worth testing it!