OK, I finished my program. It works in conjunction with Desktop Coral (by mouser), so that when the user presses a hotkey (configurable), it moves the active window to the dock of Desktop Coral.
You need the latest version of Desktop Coral (1.07.01 - September 6, 2009) for this to work. You can download it here
Once you downloaded and docked Desktop Coral, you can use my script, and press ctrl+shift+e to make the current window move (and resized) to the docked place.
In the .ini file, you can change the hotkey, as well as the path of your DesktopCoral.ini file.
Thanks to mouser and everyone who helped in this thread.
Bug reports and suggestions are welcome!
Download the script here