OK, I have no more picture now. But it's an easy DIY anyway.
Check the circuit below. For the positive wire,you can connect to the dome light positive, trunk light positive or power for head unit......
And about the GND, please connect to any gound point on car body, just find a screw nearby. I'm using the LED similiar to the one in the circuit and stick to the top of the glove box.
And the most important thing is to how and where to fix the micro switch. It's like the previous pictures, but make sure the micro switch is pressed when you close the glove box. Use glue or any adhesive to get it settled.
I think you can easily find all these materials.