Enable window to fileobj