A tip part for an endoscope has a vision receptor; a first light source; an exterior housing accommodating the vision receptor and the first light source; the exterior housing comprising a window positioned at a distal end of the tip part, the window being of a transparent material, the window comprising an exterior front surface positioned at least partly in front of the vision receptor and the first light source, wherein the window integrally comprises a first optical well of the transparent material, the first optical well being an interior protrusion positioned between the first light source and the vision receptor so that a portion of light emitted from the first light source and reflected from the exterior surface enters the first optical well, whereby stray light is at least partially prevented from entering the vision receptor.