CPP disability makes a distinction between employment income and other types of income (company pensions, passive investments, RRSP withdrawals, etc). CPP Disability focuses on your capacity to work and capacity to earn income from employment. If you have non-disability income from other sources that are not employment, then it will not affect CPP disability.
The only exception is if your income is from other CPP payments, like CPP retirement or CPP survivor pension. There are implications for the CPP payments collectively in that situation. For example, you can draw both CPP disability and CPP retirement. Stick with the disability as long as you qualify. If you get a CPP survivor pension, the the total of both the CPP-D and CPP-S cannot exceed the max allowable CPP-D amount.