Your phrase is not grammatical. “Ask” is a transitive verb and requires an object (explicit or implicit). That object may indicate who is the intended actor or what is the indicated action..
She asked the window …
means that the window is the intended actor and that therefore the verb denoting the action must be in the active voice. So if she had a magic window (made presumably by the same firm that made Ali Baba’s door), we could say
She asked the [magic] window to open.
However, to get your intended meaning across grammatically, say
She asked that the window be opened.
Now the clause introduced by “that” refers to the intended action. The intended actor is unspecified, and the passive voice is required.
EDIT As FumbleFingers noted in the comment below, what I said was grammatical above was in a very formal register. Most people do not use passive subjunctives at all, let alone in conversation or informal writing. I was trying to stay close to your original. Much more common in U.S. speech would be forms like
She asked for the window to be opened
She asked that someone open the window.
My feeling is that in my part of the U.S., the first of those might be somewhat more common, but I cannot validate that feeling by any authority.