One victim escaped and told a neighbour her friend was being raped by the Afghan national, the court heard.