#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

Example()

Func Example()
	GUICreate("AppIcon", 60, 60, 50, 100, -1, $WS_EX_ACCEPTFILES)
	$lbl = GUICtrlCreateLabel("DropZone", -1, -1, 50, 100)
    GUICtrlSetState(-1, $GUI_DROPACCEPTED)

    GUISetState()

    While True
        Switch GUIGetMsg()
            Case $GUI_EVENT_DROPPED
                MsgBox(4096, "drag drop file", @GUI_DRAGFILE)
        EndSwitch
    WEnd
EndFunc