$\newcommand{\inv}[1]{{#1}^{-1}}
\newcommand{\adj}{\operatorname{adj}}
$
Let $M = \begin{pmatrix} A_{m\times m} & B_{m \times n} \\ C_{n \times m} & D_{n \times n}\end{pmatrix}$ then the following always holds
$$
\begin{pmatrix} (\det{D})^{m-1} I_m & 0 \\ 0 & (\det(A))^{n-1}I_n \end{pmatrix} \adj M = \begin{pmatrix}\adj(A\det(D)-B\adj(D)C) & 0 \\ 0 & \adj(D\det(A) - C\adj(A)B)\end{pmatrix}\begin{pmatrix} \det(D)I_m & -B\adj D\\
-C\adj A & \det(A)I_n\end{pmatrix}.\tag{0}$$
Proof: Assume, initially , that $M,A,D$ are invertible. This also implies the invertibility of $F = D - C\inv{A}B$ and $G=A-B\inv{D}C.$
We have $\det(M) = \det(A) \det(F) = \det(D)\det(G).$
Under these assumptions $$M^{-1} = \begin{pmatrix} \inv{G} & 0 \\ 0 & \inv{F} \end{pmatrix}\begin{pmatrix} I_m & -B\inv{D}\\ -C\inv{A} & I_n\end{pmatrix}$$
and $\adj M = \det(M) \inv{M} = \begin{pmatrix} \det(G)\inv{G} & 0 \\ 0 & \det(F) \inv{F} \end{pmatrix}\begin{pmatrix} \det(D)I_m & -B\det(D)\inv{D}\\
-C\det(A)\inv{A} & \det(A)I_n\end{pmatrix}.$
So, $\adj M = \begin{pmatrix} \adj{G} & 0 \\ 0 & \adj(F) \end{pmatrix}\begin{pmatrix} \det(D)I_m & -B\adj D\\
-C\adj A & \det(A)I_n\end{pmatrix}. \tag{1}$
Now $G = \dfrac{A\det(D) - B\adj(D)C}{\det(D)},$ so
$ \adj(G) = \left(\dfrac{1}{\det(D)}\right)^{m-1}\adj(A\det(D)-B\adj(D)C)$ and similarly $\adj(F) = \left(\dfrac{1}{\det(A)}\right)^{n-1}\adj(D\det(A) - C\adj(A)B). \tag{2}$
Plugging (2) into (1) we get
$$
\begin{pmatrix} (\det{D})^{m-1} I_m & 0 \\ 0 & (\det(A))^{n-1}I_n \end{pmatrix} \adj M = \begin{pmatrix}\adj(A\det(D)-B\adj(D)C) & 0 \\ 0 & \adj(D\det(A) - C\adj(A)B)\end{pmatrix}\begin{pmatrix} \det(D)I_m & -B\adj D\\
-C\adj A & \det(A)I_n\end{pmatrix}.$$
In the space of $n \times n$ real (or complex) matrices, the invertible matrices are dense. Given any $M = \begin{pmatrix} A & B \\ C & D \end{pmatrix}$ we will find a sequence of matrices $M_n = \begin{pmatrix} A_n & B_n \\ C_n & D_n \end{pmatrix}$ such that $M_n,A_n,D_n$ are invertible and $\lim_{n\to\infty}M_n = M.$
Since (0) holds for $M_n,A_n,B_n,C_n$ and since the LHS and RHS are continuous functions we can let $n \to \infty$ and get the result for all $M$.