I have made some UI changes for issue 6854. I have added a switch Custom return type? if enabled, an input text box will be visible in which the user can provide their desired return type, and when this switch is enabled return type select box will be disabled. This custom return type input and switch will be visible only when creating a new function.
Please provide your suggestions and feedback if these changes look okay to you.