Dojo is decently documented here.
But as far as working it into how things run within OFBiz and the decorator patterns most of the stuff in Dojo to work efficiently need to be loaded into the <head> of a webpage.
So, to get it to work, Include the following in your screen definition:
<set field="dojo" value="true"/> <!-
the patch needs to be changed to look for the dojo being equal to true rather than just existing->
<set field="dojoRequire" value="dojoPackage1"/>
<set field="dojoRequire" value="dojoPackage2"/>
<set field="dojoRequire" value="dojoPackage3"/>
<decorator-screen name="main-decorator" location="$
Each of those packages are then available to you.