Depending on the aircraft they may not actually be lights.
Case in point the F4U: the two lamps inside the cockpit were actually blacklights, designed to cause the paint on the instruments to floresce. This made them readable in the dark without hampering night vision.