Unity 2D Antialiased Rounded Rectangle In Editor Window?

Hi, how do I draw an antialiased rounded rectangle with variable radius in an EditorWindow? Thanks :smiley:

Here is a plugin to do it in uGUI