You do not need to set the z-indexin stack, as it will act as a selector and take it directly from the element (just be sure that the element has z-index)
$(".fenster").draggable({
cancel: '.inhalt',
containment: 'body',
scroll: false,
stack: '.fenster'
});
小提琴