I'm currently making a workflow in which I need to combine two windows into a split view window (the feature from OS X El Capitan). I'd there any way to do that with AppleScript?
Do you need a real fullscreen or are you trying to achieve something like this?
There are dozens of apps to do this so one of them will have AppleScript or key shortcuts. See: