On the non-isospectral Kadomtsev–Petviashvili equation with self-consistent sources