Example of using the ol.interaction.Draw interaction. Webgl renderering is experimental and limited to points.
See the draw-features.js source to see how this is done.