A Mildura man allegedly raped a woman after subjecting to her to a prolonged attack over several days, a court has heard.