Added function for reading subwindow definitions from file