Samsung Galaxy S4: Get files from broken & locked screen
I believe the S4 supports USB On-The-Go. If you get yourself an OTG adapter, you can use it to plug in a USB mouse and unlock the screen that way. A mouse click/drag works just like a screen touch in Android.