When in space, the Transporter Room gives the following options:

When docked, the Transporter Room gives the following options:

In both cases, the visible destination is selected as being the current location, and cannot be used. In the latter example, this makes sense (the door is right there, and open to the player) but in the former this makes life fairly difficult.