its mostly line of sight but even if you failed to unlock it you still touched it and putting it in a bag and then dropping the bag on the ground is a work around for most of the items... because you don't have it on you when guards show up


Luke Skywalker: I don't, I don't believe it.
Yoda: That is why you failed.