there are a few ways, but first let me tell you it can be harmful on both parts. It can be desruptive to normal sleep patterns and the person may not like that very much. Personally i dont like dream invaders.
but anyway its called dreamwalking or dream sharing, it works best when you already have a connection to the person. so family woul be easiest. Lots of meditation and be able to AP and LD