@Override
    protected void dispatchDraw(Canvas canvas) {
        super.dispatchDraw(canvas);
        final int offsetPixels = (int) mOffsetPixels;

        if (mDrawOverlay && offsetPixels != 0) {
            drawOverlay(canvas);
        }
        if (mDropShadowEnabled && (offsetPixels != 0 || mIsStatic)) {
            drawDropShadow(canvas);
        }
        if (shouldDrawIndicator() && (offsetPixels != 0 || mIsStatic)) {
            drawIndicator(canvas);
        }
    }
Attaches the menu drawer to the window.
menudrawer/src/net/simonvt/menudrawer/MenuDrawer.java