In Python Launcher Preferences there are two settings for file type, Python Script and Python GUI Script. But Python Launcher can not recognize pyw file as Python GUI Script file type correctly.
Thanks for the PR. I believe there also used to be a distinction between .py and .pyw files back in the distant past of classic MacOS (9 and earlier) and limited support for .pyw was carried over into Mac OS X (10). But most of the references to .pyw for macOS have been removed over the years other than, it seems, here in Python Launcher.app. There are other more basic concerns with the Launcher app so I have been holding off on merging this change for 3.9. I plan to make a decision about its fate by the end of the PyCon sprints in April.
I'm fairly sure support for .pyw, or rather a separate python executable, was introduced in the MacOSX port. In particular, we started out with two different executables "python" and "pythonw" where the first was the regular python executable, while the second did the "launch executable in Python.app" dance to support GUI code from the command-line. This was changed later on to always use the executable from Python.app. P.S. I still think Python Launcher is worrisome from a security standpoint (#5262).