The Queensland Supreme Court has heard a father charged over the death of his unattended young daughter had been taking drugs and was sleep deprived in the lead-up to the tragedy.