Hermetically sealed enclosures and constructions are disclosed for use in endoscopic systems, particularly endoscopic systems with electronic imaging and illumination systems in the enclosures. Compound optical windows are also disclosed for use in the systems. The compound optical windows may have separate panes for an imaging system and an illumination system, and contrast-reducing optical boundaries are between panes.