Add support for a sample mode (only when building in debug mode), so that we can put our Sample view in it.