Are namaz, tasbeeh, duas etc still accepted if your mind is distracted?

Yes they are except they will be rewarded according to whatever concentrations you were able to achieve.