The correct Hungarian sentence goes like this: "Idefekszem a fahoz es pihenek." F being a consonant we don't need the "z." "Az ablak" the window but "a fa" the tree.
The example is wrong. "Idefekszem a fához és pihenek" the correct sentence.
Az ablak, a fa, and NOT a ablak, az fa! :)
we say the same thing, Murphy