Ex-president Rodrigo Duterte is accused of the extrajudicial killing of thousands during his "war on drugs".