UIOverlay without UIWindow?

Can UIOverlay be used without UIWindow? I am trying to create a UIOverlay subclass and override the paint method. I think I am attaching it to the scene graph properly but it is not rendering as far as I can tell.