Consider the natural embedding of $\mathbb{RP}^n$ into $\mathbb{CP}^n$, and let $Q$ be the quadric $z_0^2+\cdots +z_n^2=0$ in $\mathbb{CP}^n$. How can we show that $\mathbb{CP}^n-\mathbb{RP}^n$ deformation retracts onto $Q$? The answer to this question handles the case $n=2$, and I'm trying to generalize it.
Let $p:\mathbb{C}^{n+1}-0\to \mathbb{CP}^n$ be the natural projection. One way would be to find a deformation retraction of $p^{-1}(\mathbb{CP}^n-\mathbb{RP}^n)$ onto $p^{-1}(Q)$, that descends to a deformation retraction of $\mathbb{CP}^n-\mathbb{RP}^n$ onto $Q$. If we identify $\mathbb{C}^{n+1}$ with $\mathbb{R}^{n+1}\times \mathbb{R}^{n+1}$ by $(x_0+iy_0,\dots,x_n+iy_n)\to (x_0,\dots,x_n,y_0,\dots,y_n)$, then $p^{-1}(Q)$ is exactly $\{(x,y):|x|^2=|y|^2, \langle x,y\rangle=0\}$, and $p^{-1}(\mathbb{RP}^n)$ is exactly $\{(x,y): \{x,y\} \text{ is linearly dependent over $\mathbb{R}$}\}$. So, following the linked answer, if we take $(x,y)$ in the complement of $p^{-1}(\mathbb{RP}^n)$, then $x$ and $y$ are not parallel, so we may rotate $y$ in the plane generated by $x$ and $y$ until it becomes orthogonal to $x$, and then scale so that $x$ and $y$ have the same norm. But I have no idea to write this in formula (we have to choose the direction of rotation, and is this well defined?), so I cannot check whether this retraction descends to $\mathbb{CP}^n$. (Or maybe I should try this on $S^{2n+1}$ instead of $\mathbb{C}^{n+1}-0$, so that we don't need to care about norms.)
Other way would be defining a suitable function and show that its gradient flow gives a deformation retraction, but still I can't see what function to use. (Maybe the function $S^{2n+1}\to \mathbb{R}$ given by $(x,y)\mapsto \langle x,y\rangle^2$?)
Edit: I'm looking for references, and I'm trying to check whether Remark 2.8 of this paper, the first two paragraphs of Section 2 of this paper, and 3.1.2 of this paper are relevant.
Edit. Here is an argument showing that the complement $\mathbb{CP}^n-Q$ is diffeomorphic to the tangent bundle $T\mathbb{RP}^n$ such that $\mathbb{RP}^n \subset \mathbb{CP}^n-Q$ corresponds to the zero section. Note that the affine quadric $\tilde{Q}:=\{z_0^2+\cdots+z_n^2=1\}\subset \mathbb{C}^{n+1}$ is a double cover of $\mathbb{CP}^n-Q$. On the other hand, consider the tangent bundle $TS^n=\{(x,y)\in \mathbb{R}^{n+1}\times \mathbb{R}^{n+1}: |x|=1, \langle x,y\rangle=0\}$ and view $T\mathbb{RP}^n$ as the quotient $TS^n/(x,y)\sim (-x,-y)$. Identifying $\mathbb{C}^{n+1}$ with $\mathbb{R}^{2n+2}$ as above, we see that $\tilde{Q}$ is diffeomorphic to $TS^n$: the map $\tilde{Q}\to TS^n$, $(x,y)\to (x/|x|,y)$ has inverse $TS^n\to \tilde{Q}$, $(x,y)\to (\sqrt{1+|y|^2} x,y)$. So we have a series of diffeomorphisms $\mathbb{CP}^n-Q \approx \tilde{Q}/\mathbb{Z}_2 \approx TS^n/ \mathbb{Z}_2 \approx T\mathbb{RP}^n$ and clearly the zero section of $T\mathbb{RP}^n$ corresponds to the standardly embedded $\mathbb{RP}^n$ in $\mathbb{CP}^n$. So, we have $\mathbb{CP}^n= Q\cup (\mathbb{CP}^n-Q)=Q\cup T\mathbb{RP}^n$ and $\mathbb{CP}^n-\mathbb{RP}^n=Q\cup (T\mathbb{RP}^n-\mathbb{RP}^n)$. But this does not directly gives a deformation retraction of $\mathbb{CP}^n-\mathbb{RP}^n$ to $Q$. But, if we can show that the complement $\mathbb{CP}^n -D(T\mathbb{RP}^n)$ of the unit disk bundle is a tubular neighborhood of $Q$, then we can conclude that $\mathbb{CP}^n-\mathbb{RP}^n$ retracts to $Q$. I got stuck here.