Opening a door when the player's cursor is over the object, as well as being inside a collision box

Wouldn’t that allow the door to be open even if the door is only a fragment in the player’s frame?