Ok, it works. I have added one xpt file and one dll to my components directory and one JS file to my main window, and I have now minimized to tray a xulrunner-based app. Still working on it, stay tuned.

wengophone minimized to tray