Let $L$ be an $n\times n$ matrix and $W= \operatorname{diag}(w_1,\cdots,w_n)$. Show that $\det(I-WL)= \sum_{S\subset[n]} \det(L[S])(-1)^{|S|}w^S$. Where $I$ is the $n\times n$ identity matrix, $L[S]$ is the principal submatrix of $L$ whose rows and columns are indexed by $S$ and $w^S = \prod_{i\in S} w_i$.
I am thinking there is some way to apply Cauchy-Binet in this case.