Get Editor Viewport Size?

Hi, How do I get the size of the editor viewport at construction time?

GetViewportSize always gives (1,1)