As it turns out, a textarea element treats dropped files as strings instead of files and correct way to fix the situation is to simply use it's parent element