Where would your money come from while you lived in Portugal?
Two routes sit behind this question, and they are assessed differently. If you work, the test is that whoever pays you is based outside Portugal. If you do not work, Portugal has a separate visa for people living on their own income, such as a pension, rent or investments, which is measured against the Portuguese minimum wage. Both lead to the same residence permit.