Are Skylights A Window or Part of the Roof?

Question: I live in condominium consisting of 46 free-standing single family homes; 22 of them were built with skylights. During the rainy season, my roof developed a leak originating from the skylight.   Read the article………….