Add widget demo tutorial

It was adapted from the ParameterTester debugging plugin, with many
comments and explanations added to make it tutorial-worthy.