there are a couple of ways, but the majority either detect noise being picked up by your body being coupled to an amplifier, or you body's capacitance affecting an oscillator.
Google for "capacitive touch switch circuit"
If the glass surface you want to make touch sensitive is the one through which the light shines, you will need (probably) a way to make the inside conductive without being opaque.