That's not how Windows Firewall works out of the box.
Windows Firewall can be set up in such a way that it simply blocks or allows traffic on specific port numbers that you specify, but those predefined rules that you see, such as "Play To SSDP Discovery"... that is not a simple "name resolution" issue as you mention in your question. Windows Firewall uses those predefined rules to allow or disallow traffic generated by specific processes or applications, regardless of port number or protocol.
If you want to discard all of this built in functionality and go back to only caring about port numbers, then you are free to wipe out all of the built-in Windows Firewall rules and create your own based on port numbers. In that case, you can name the rules whatever you want. Name the rule "Port 3389" if you want. In addition to that, if you then set the rule up properly, the local and remote ports for that rule will display as expected in the list.