An infrared detector has a window in a cover having a cavity for exposing detector pixels to incident radiation. The method may include heating a fiber preform above its softening point, drawing a fiber from the heated preform and passing the fiber through two treatment stages. The powder is then inserted into a mold to form the powder into the shape of .