You can find the Workspace Manager demos in /usr/dt/examples/dtwsm. Read the README file for detailed information on the demos.
For more information on Workspace Manager, see the relevant man pages and the Solaris Common Desktop Environment: Programmer's Guide.