Gonioscopy is a diagnostic procedure used by ophthalmologists to visualize the anterior chamber angle of the eye, which is crucial for diagnosing and managing glaucoma. It involves the use of a special lens to overcome the optical limitations of the cornea, allowing for the assessment of the drainage angle and identification of any abnormalities.