Window.resizeTo() not working

For some strange reason i am not able to see the effect of the function
window.resizeTo() or self.resizeTo();
when this function executes … nothing happens to the main window.
Can some one give me a example or explain why it would not work

See the following reference as it explains why it doesn’t work in normal circumstances.