The two-year-old boy fell from the window of a hotel in Cyprus in July, a Paphos court hears.