I've exactly the same issue : How do I use the canvas drawWindow function in an addon created using the addon sdk?
But the solution doesn't work.
If drawWindow can't be use with the firefox add-on sdk, there is an other solution to put a clicked pixel to a canvas ?