The Cairns Children's Court has heard a teenager accused of raping a woman during a Cairns home invasion attempted to break into the same property hours earlier.