Let $X$ be a space and $H$ be a group such that $X\rightarrow X/H$ is a principal bundle. Then $Hom(Y,X/H)$ is in bijection with $H$ torsors over $Y$ equipped with an equivariant map from their total space to $X$. So maps from $Y$ into the flag variety $G/P$ are in bijection with $P$ torsors on $Y$ equipped with a $P$-equivariant map to $G$. Or equally $P$ "subtorsors" of the trivial torsor $G\times Y$.
For example if we take $G=GL_{n}(\mathbb C)$ the data of a $P$ "subtorsor" of $G$ is equivalent to giving a flag (whose type is determined by $P$) of sub-bundles inside the trivial n-dimensional bundle on $Y$.
If for example $P$ consist of all matrices whose first column is zero everywhere except in the upper left corner, we have $G/P=\mathbb P^{n-1}$. Our description says maps into $\mathbb P^{n-1}$ are the same thing as linebundles inside of $Y\times \mathbb C^n$.
Taking the dual of such a linebundle and restricting the coordinate functions of $\mathbb C^n$ to it gives the usual universal property of $\mathbb P^{n-1}$.
All this should work over any field.
$X$
can be identified with the set of all Borel subgroups of$G$
. $\endgroup$