The new loan against ppor is only used as deposit for IP.
So you end up with 3 loans
Loan A - original mortgage on ppor, secured by ppor, not deductible. No changes here.
Loan B - new mortgage on ppor, secured by ppor, used for deposit & fees on IP, deductible. When applying for Loan B they'll...