@bjlouisville15,
You've explained he's lost his dad due to Death and his mother due to drugs? Don't you think he could have PTSD and looking for help?
I think you are discounting his past trauma and yelling at him isn't going to work. Please have a discussion on how he's feeling and get him into a more structured counseling environment.
You don't sound like the touching is sexual in nature, just that it happens when you're sleeping. Talk with him, explain what and when touching is appropriate. Yes, close bedroom doors at night and explain it's not appropriate to enter uninvited.
You and your daughter are the only people he could count on and love. Part of that is physical touching. Do you hug him? Tell him that he's wanted and valued?
How long has he had issues sleeping at night? Has that issue been addressed?