Draws a button in a picture window, it can have various styles and receives certain events. For documentation, read the comments throughout the code.