lib/Ext/core/EventManager.js
function(fn, scope, options) {
        //<debug warn>
        Ext.Logger.deprecate("Ext.EventManager.onWindowResize is deprecated, attach listener to Ext.Viewport instead, i.e: Ext.Viewport.on('resize', ...)", 2);
        //</debug>
        Ext.Viewport.on('resize', fn, scope, options);
    }
function(fn, scope, options) {
        //<debug warn>
        Ext.Logger.deprecate("Ext.EventManager.onWindowResize is deprecated, attach listener to Ext.Viewport instead, i.e: Ext.Viewport.on('resize', ...)", 2);
        //</debug>
        Ext.Viewport.on('resize', fn, scope, options);
    }
Adds a listener to be notified when the browser window is resized and provides resize event buffering (50 milliseconds),
passes new viewport width and height to handlers.
@param {Function} fn      The handler function the window resize event invokes.
@param {Object}   scope   The scope (`this` reference) in which the handler function executes. Defaults to the browser window.
@param {Boolean}  options Options object as passed to {@link Ext.Element#addListener}
@deprecated 2.0.0 Please listen to the {@link Ext.Viewport#event-resize resize} on Ext.Viewport instead.