There is a similar invasion of a person's mind in the episode Inner Light (TNG) where a probe from a dead planet takes over Picard's mind and forces him to experience the life of Kamin. In spite of the fact that subsequently Picard has pleasant feelings about this experience, it is nevertheless an invasion of his autonomy. Similarly, the invasion of Barclay's mind in The Nth Degree (TNG) is morally objectionable.