Toddler injured after falling out of window