The invention relates to a window system for an intraoral scanner. Said window system comprises an optical element having a thermal conductivity of more than 1 W m−;1 K−;1. A window, which comprises a pane made for example of a plastic, glass, or corundum, is detachably disposed on the optical element at an average distance of less than 1 mm. At least one heat source is also connected to the optical element. The invention further relates to an intraoral scanner. Said intraoral scanner comprises the window system. The optical element and the at least one heat source are connected to the intraoral scanner. The window is disposed in a cover. Said cover can be disposed on the intraoral scanner such that the window has an average distance of less than 1 mm from the optical element.