I don't really detach from people fully. I have a lot of aloofness. I also have flat affect when depressed. I try to work on this with mindfulness, being aware that it is something that I do that can make others feel unloved or unwanted. It isn't always easy.
If you're detaching fully without wanting to, then that's something you're going to have to investigate. Do you have a therapist? That would be a good thing to work on with a therapist.
__________________
|