Adding a val statement before both expressions like:
val x = aow my_seat
val y = is_window my_seat
lets the file compile. Seeing that, I also tried to replace fun before aow and is_window functions. However this results in the following very logical error:
Error: syntax error: replacing VAL with FUN
Apparently, SML does not allow footloose expressions during compilation.