A migrant from Afghanistan has been jailed for 10 years for the rape of a "vulnerable, intoxicated" woman.