This example demonstrates how to use a GUI toolkit like PyQt to build your own custom tool/utility which can then interact with Photoshop via COM on Windows.
Python 3.x
PyQt5: https://www.riverbankcomputing.com/software/pyqt/download5
http:https://www.pyinstaller.org/
pyuic5 <path to resizer_ui.ui> -o <outputpath to resizer_ui.py>
pyinstaller <path to appplication main app.py>