The Star Trek universe is set inside our own Milky Way, however has there been any instances of contact with life outside our own Milky Way? I understand the distance between our galaxy and the next is much bigger than distances typically traveled by warp capable ships but there could have been other means of communication or travel.
Edit: Bonus question, how was such a vast distance traveled?