A relative who found the girl, who police believe had been left for an “extended period of time”, is assisting police with inquiries.