I know that if $H$ is a Hilbert space and $C$ a closed subspace one can define the orthogonal projection onto $C$ as the map $x \oplus y \in H = C \oplus C^\bot \mapsto x$.
I am wondering:
Is it valid, for an open subspace $O$, to define a (possibly non-orthogonal) projection onto $O$?
And if the answer is affirmative, how to do it?