To throw out a window is a common American idiom for being rid of something undesirable without reference to the fate of what was thrown out the window (except that it does not return).
Kind of like the commonly used statement about throwing someone 'under the bus'.