For is used if there is a positive reason. I'm doing this for you because you were so helpful to me while I was ill. To is often used if there is a negative reason (like punishment). Why are you doing this to me (yelling at me, treating me poorly)? What have I done to deserve it? I hope this helps.
So for example my friend saw something cute on TV like....A boy doing his girlfriend hair.. so my friend should say I wish a boy could do this to me or I wish a boy could you this for me