Closing a dialog on outside click and allowing width to be set via CSS

Closing a dialog on outside click and allowing width to be set via CSS

I see these as 2 major issues with the current dialog. I can't use it if these aren't fixed.
  1. Clicking anywhere on the window outside of the dialog should close the dialog. This seems obvious doesn't it? 
  2. I don't want to set the width of the dialog through the init options. I want to set the width in CSS where it belongs.
I am not interested in extending jQuery UI to fix these, I've already fixed the width issue by extending the dialog with a new widget and overriding the _size method, and I know I could bind a click event to the overlay and close any dialogs in the callback, but why should I do that when there are other UI libs that already work this way? The reason I ask is because I really do enjoy jQuery UI and I would prefer to be able to use it, but I'm put in a touch position because of these drawbacks.

So, what is the perspective on fixing these? I would be glad to submit patches assuming these behaviors are generally accepted as desirable. 

Thanks.