I've tried never tried either of these hacks myself, but these are what I found back when I was asking myself just the same question:
1 - Franken-XMonad-Compiz
Someone called tuxmark5, who afterwards "promptly disappeared" mashed together XMonad and Compiz [YouTube], presumably using something magical and dirty in
XMonad.Hooks.* in a way that looks just like what you describe. There are some potentially useful links in the video description and you could try PM-ing the uploader.
2 - Compiz plug-in
This guy wrote a tiling plugin for Compiz, but "you’ll need a boatload of dependencies to make it compile", he cautions. Comments to the blog post say things like "it does work great", "absolutely fantastically great" and "uber plugin", which sounds ridiculously promising! (Though not promising enough for me to grab a boatload of dependencies. Let me know if you try it!)