The file could be closed by double clicking on the file tab. It is more convenient than the very far top right close button or in the menu context.
Settings -> Preferences... -> Global Tab -> Tab Bar Frame -> "Double click to close document"
People, please do a minor search at least, before requesting new functionality
Thank you, Daniel. It works like a charm. :)